package com.muyu.danmo.domain;


import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 新闻图片对象 danmo_news_phone
 *
 * @author yangle
 * @date 2024-09-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class DanmoNewsPhone extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻图片id */
    private Long newsPhoneId;

    /** 新闻id */
    private Long newsId;

    /** 新闻图片 */
    @Excel(name = "新闻图片")
    private String newsPhoneName;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("newsPhoneId", getNewsPhoneId())
            .append("newsId", getNewsId())
            .append("newsPhoneName", getNewsPhoneName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
